﻿<%@ Page Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="ListaPlanTrabajoMensual.aspx.vb" Inherits="devida_f_monitoreo" Theme="Yahoo-Ocean" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>
<%@ Register src="ucValida.ascx" TagName="Valida" TagPrefix="uc2" %>
<%@ OutputCache Location="None" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style2
        {
            width:100%;
        }
        .style1
        {
            width: 900px;
        }
        </style>
    <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />
    <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">       
        function Resaltar_On(GridView) {
            if (GridView != null) {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#5BADFF";
            }
        }

        function Resaltar_Off(GridView) {
            if (GridView != null) {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }
            
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
    <asp:Label id="lblTitulo" runat="server" ForeColor="White" Font-Size="Large" Font-Bold="true" ></asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <table cellpadding="0" cellspacing="0" class="style1">
        <tr>
            <td>
                
                <table cellpadding="0" cellspacing="0" class="style2">
                    <tr>
                        <td> <div style="border: solid 1px #99aabd; width: 900px;  overflow: auto;"
                                    align="center">
                            <table cellpadding="0" cellspacing="0" class="style2">
                                <tr>                                 
                                    <td width="100px" align ="left">
                                        <asp:Label ID="Label1" runat="server" CssClass="label" Text="Monitoreador"></asp:Label>
                                    </td>
                                    <td width="130px">
                                        <asp:DropDownList ID="ddl_Monitoreador" runat="server" CssClass="ddl" Width="125px" 
                                            Height="16px" AutoPostBack="True">
                                        </asp:DropDownList>
                                    </td>
                                    <td width="70px">
                                        <asp:Label ID="Label2" runat="server" CssClass="label" Text="PPER"></asp:Label>
                                    </td>
                                    <td width="250px">
                                        <asp:DropDownList ID="ddl_pper" runat="server" CssClass="ddl" Width="245px" 
                                            Height="16px" AutoPostBack="True">
                                        </asp:DropDownList>
                                    </td>                                    
                                    <td width="70px">
                                        <asp:Label ID="Label12" runat="server" CssClass="label" Text="Periodo"></asp:Label>
                                    </td>
                                    <td width="190px">
                                        <asp:DropDownList ID="ddl_PERIODO" runat="server" CssClass="ddl" Width="157px" 
                                            Height="16px" AutoPostBack="True">
                                        </asp:DropDownList>
                                    </td>
                                    <td width="10px">        
                                        <asp:ImageButton ID="btn_busca" runat="server" ToolTip="Buscar" ImageUrl="~/Imagenes/btn_acclupa.jpg" />                  
                                    </td>
                                </tr>                                  
                            </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table cellpadding="0" cellspacing="0" class="style2">
                                <tr>
                                   <td>
                                   
                                   </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                
            </td>
        </tr>
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" style="width: 900px; height: 300px;">
                        <tr>
                            <td>
                                <div  style="border: solid 1px #99aabd; width: 900px; height: 350px; overflow: auto;"
                                    align="center">
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                            <div id="div_grilla" >
                                <asp:GridView ID="gv_impresion" runat="server" AutoGenerateColumns="False"
                                CellPadding="0" CssClass="grid" Font-Size="8pt" GridLines="None" Width="900px">                                    
                                    <RowStyle ForeColor="#333333" Font-Bold="False" BackColor="#F7F6F3" VerticalAlign="Top" />
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <%# Container.DataItemIndex + 1 %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Monitoreador">
                                    <ItemStyle HorizontalAlign="Left" Width="100px"  Wrap="false"  />
                                        <ItemTemplate>     
                                        <asp:Label ID="lblMonitoreador" runat="server" Text='<%# Bind("MONITOREADOR") %>'></asp:Label>                       
                                            <asp:HiddenField ID="hfCodigo" runat="server" Value='<%# Bind("ID_PLAN_TRABAJO_PERSONA") %>' />
                                            <asp:HiddenField ID="hfPeriodo" runat="server" Value='<%# Bind("PERIODO") %>' />
                                            <asp:HiddenField ID="hfEstado" runat="server" Value='<%# Bind("ID_ESTADO") %>' />
                                            <asp:HiddenField ID="hfPersona" runat="server" Value='<%# Bind("PERSONA") %>' />
                                            <asp:HiddenField ID="hfPPER" runat="server" Value='<%# Bind("PPER_ID") %>' />
                                        </ItemTemplate>                     
                                    </asp:TemplateField>                                                                                                                                                          
                                        <asp:BoundField HeaderText="Oficina Zonal" DataField="DESCRIPCION" ItemStyle-HorizontalAlign="Left" />
                                        <asp:BoundField HeaderText="PPER" DataField="PPER" ItemStyle-HorizontalAlign="Left" />
                                        <asp:BoundField HeaderText="Año" DataField="ANHIO" ItemStyle-HorizontalAlign="Left" />
                                        <asp:BoundField HeaderText="Mes" DataField="MES" ItemStyle-HorizontalAlign="Left" />                                                                                                                                
                                        <asp:BoundField HeaderText="Estado" DataField="ESTADO" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="60px" />                             
                                        <asp:BoundField HeaderText="Fecha Aprob." DataField="FECHA_APROBACION_JEFE" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="70px" ItemStyle-Wrap="false" />                             
                                        <asp:CommandField ShowSelectButton="True" Visible="False" />
                                    </Columns>
                                    <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
                                    <AlternatingRowStyle BackColor="#CEDAF2" ForeColor="#003366" />
                                    <PagerStyle BackColor="#336699" Font-Bold="True" Font-Names="Verdana" Font-Size="10px"
                                        ForeColor="White" Wrap="False" HorizontalAlign="left" />
                                </asp:GridView>
                             </div>
                             <div id="div1" style="display:none;" >
                                <asp:GridView ID="gv_doc" runat="server" AutoGenerateColumns="False" BorderColor="Black" 
                                CellPadding="4" Font-Size="8pt" GridLines="both" Width="900px" HeaderStyle-BackColor="#66CC99"> 
                                <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" VerticalAlign="Top" />
                                    <Columns> 
                                        <asp:BoundField HeaderText="Monitoreador" DataField="MONITOREADOR" ItemStyle-HorizontalAlign="Left" />                                                                                                                                                    
                                        <asp:BoundField HeaderText="Oficina Zonal" DataField="DESCRIPCION" ItemStyle-HorizontalAlign="Left" />
                                        <asp:BoundField HeaderText="PPER" DataField="PPER" ItemStyle-HorizontalAlign="Left" />
                                        <asp:BoundField HeaderText="Año" DataField="ANHIO" ItemStyle-HorizontalAlign="Left" />
                                        <asp:BoundField HeaderText="Mes" DataField="MES" ItemStyle-HorizontalAlign="Left" />                                                                                                                                
                                        <asp:BoundField HeaderText="Estado" DataField="ESTADO" ItemStyle-HorizontalAlign="Left" />                             
                                        <asp:CommandField ShowSelectButton="True" Visible="False" />
                                    </Columns>                                
                                </asp:GridView>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                                </div>
                            </td>
                        </tr>
                    </table>
            </td>
        </tr>
        <tr><td>
        <table width="100%">
        <tr>
        <td width="120px" align="left"><asp:ImageButton id="ibAgregar" runat="server" ImageUrl="~/Imagenes/btnNuevo.png" ToolTip="Agregar Nuevo Plan de Trabajo" /></td>
        <td width="120px" align="left"><asp:ImageButton id="ibModificar" runat="server" ImageUrl="~/Imagenes/btnModificar.png" ToolTip="Modificar Plan de Trabajo" /></td>
        <td width="120px" align="left"><asp:ImageButton id="ibEliminar" runat="server" ImageUrl="~/Imagenes/btnEliminar.png" ToolTip="Eliminar Plan de Trabajo" /></td>
        <td width="120px" align="left"><asp:ImageButton id="ibAprobar" runat="server" ImageUrl="~/Imagenes/btnAprobar.png" ToolTip="Aprobar Plan de Trabajo"/></td>
        <td width="120px" align="left"><asp:ImageButton id="ibConsultar" runat="server" ImageUrl="~/Imagenes/btnConsultar.png" ToolTip="Consultar Plan de Trabajo"/></td>
        <td width="120px" align="left"><asp:ImageButton id="ibExportar" runat="server" ImageUrl="~/Imagenes/btnExportar.png" ToolTip="Exportar a Excel"/></td>
        <td align="right"><asp:ImageButton id="ibSalir" runat="server" ImageUrl="~/Imagenes/btnSalir.png" ToolTip="Salir"/></td>  
                        
        </tr></table>        
        </td></tr>
        
    </table>
    
    <asp:Label style="color:blue; font-size:9pt;" text="<br/>Aquí se muestra la lista de los Planes de Trabajo Mensuales ya ingresados. Para ingresar uno nuevo del siguiente mes haga clic en 'Nuevo' " runat="server"></asp:Label>

    <uc2:Valida id="valida" runat="server"></uc2:Valida> 
    <uc1:Alerta id="alerta" runat="server"></uc1:Alerta>       
</asp:Content>

